package com.example.demo.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

/**
 * @program: SpringAOP
 * @ClassName MyQuartzJob
 * @description:
 * @author: zsn
 * @create: 2024-11-26 14:42
 * @Version 1.0
 **/
@Component
public class MyQuartzJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        // 定时任务的执行逻辑
        System.out.println("MyQuartzJob is executing at " + new java.util.Date());
    }
}
